import request from '@/utils/request'

// 查询维修单列表
export function listRepairRecord(query) {
  // 返回模拟数据，不连接后端
  return Promise.resolve({
    code: 200,
    msg: "操作成功",
    total: 0,
    rows: []
  });
  /*
  return request({
    url: '/ldzl-sb/repair/record/list',
    method: 'get',
    params: query
  })
  */
}

// 查询维修单详细
export function getRepairRecord(id) {
  // 返回模拟数据，不连接后端
  return Promise.resolve({
    code: 200,
    msg: "操作成功",
    data: {}
  });
  /*
  return request({
    url: '/ldzl-sb/repair/record/' + id,
    method: 'get'
  })
  */
}

// 新增维修单
export function addRepairRecord(data) {
  // 返回模拟数据，不连接后端
  return Promise.resolve({
    code: 200,
    msg: "操作成功"
  });
  /*
  return request({
    url: '/ldzl-sb/repair/record',
    method: 'post',
    data: data
  })
  */
}

// 修改维修单
export function updateRepairRecord(data) {
  // 返回模拟数据，不连接后端
  return Promise.resolve({
    code: 200,
    msg: "操作成功"
  });
  /*
  return request({
    url: '/ldzl-sb/repair/record',
    method: 'put',
    data: data
  })
  */
}

// 删除维修单
export function delRepairRecord(id) {
  // 返回模拟数据，不连接后端
  return Promise.resolve({
    code: 200,
    msg: "操作成功"
  });
  /*
  return request({
    url: '/ldzl-sb/repair/record/' + id,
    method: 'delete'
  })
  */
}

// 获取报修单列表
export function getRepairOrderList() {
  // 返回模拟数据，不连接后端
  return Promise.resolve({
    code: 200,
    msg: "操作成功",
    data: {}
  });
  /*
  return request({
    url: '/ldzl-sb/repair/order/list',
    method: 'get'
  })
  */
} 